﻿<UserControl x:Class="IndexMarkSilverlightClient.Views.Controls.ISTreeView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"             
    xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls"
    xmlns:classes="clr-namespace:IndexMarkSilverlightClient.Classes">
    
    <Grid x:Name="LayoutRoot">
        
            <controls:TreeView x:Name="ISTree" ItemsSource="{Binding}" VirtualizingStackPanel.VirtualizationMode="Standard" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Height="Auto">
                <controls:TreeView.ItemTemplate>
                    <common:HierarchicalDataTemplate ItemsSource="{Binding Childs}">
                        <StackPanel Orientation = "Horizontal">
                            <Image Source="{Binding ImagePath}" Width="20" Height="20"/>
                            <CheckBox ClickMode="Release" IsChecked="{Binding Check, Mode=TwoWay}" Click="CheckBox_Click" Content="{Binding}"/>
                            <!--<TextBlock Text="{Binding Path=Order}"/>
                            <TextBlock Text=" - "/>
                            <TextBlock Text="{Binding Path=Name}"/>-->
                        </StackPanel>
                    </common:HierarchicalDataTemplate>
                </controls:TreeView.ItemTemplate>
            </controls:TreeView>
        
    </Grid>
</UserControl>
